import request from '/@/utils/request';
const headers = {
	onlyData: true,
};
//保存
export const expertInfoAddApi = (data: any) => {
	return request({
		url: `/manage/expertInfo/saveExpertInfo`,
		method: 'post',
		data,
		headers,
	});
};
//提交
export const expertInfoSubmitApi = (data: any) => {
	return request({
		url: `/manage/expertInfo/commitExpertInfo`,
		method: 'post',
		data,
		headers,
	});
};
//分页查询
export const expertInfoPageApi = (params: any) => {
	return request({
		url: `/manage/expertInfo/page`,
		method: 'get',
		params,
		headers,
	});
};
//我的分页查询
export const expertInfoMinePageApi = (params: any) => {
	return request({
		url: `/manage/expertInfo/selectMyInfo`,
		method: 'get',
		params,
		headers,
	});
};
//详情
export const expertInfoDetailApi = (params: any) => {
	return request({
		url: `/manage/expertInfo/getDetailInfo`,
		method: 'get',
		headers,
		params,
	});
};
//专家删除
export const expertInfoDeleteApi = (params: any) => {
	return request({
		url: `/manage/expertInfo/deleteInfo`,
		method: 'DELETE',
		headers: {
			showSuccessMessage: true,
			onlyData: true,
		},
		params,
	});
};
//审核分页查询
export const expertInfoPageApproveApi = (params: any) => {
	return request({
		url: `/manage/expertInfo/pageApproveList`,
		method: 'get',
		params,
		headers,
	});
};
//专家更新
export const expertInfoUpdateApi = (data: any) => {
	return request({
		url: `/manage/expertInfo/updateInfo`,
		method: 'post',
		headers: {
			showSuccessMessage: true,
			onlyData: true,
		},
		data,
	});
};
